﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NavKet.Models;

namespace NavKet.Controllers
{
    public class CategoryController : Controller
    {
        //
        // GET: /Category/
        MallEntities1 navKetEntity = new MallEntities1();
        public ActionResult Index(int id)
        {
            
            List<Category> categoryList = navKetEntity.SelectCategoryByCategoryId(id).ToList();

            return View(categoryList);
        }
    }
}
